home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / XFILEIO.H < prev    next >
Text File  |  1992-11-04  |  2KB  |  64 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XFILEIO - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;-----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XFILEIO_H_
  22. #define _XFILEIO_H_
  23.  
  24. #define F_RDONLY  0
  25. #define F_WRONLY  1
  26. #define F_RDWR    2
  27.  
  28. #define SEEK_START 0
  29. #define SEEK_CURR  1
  30. #define SEEK_END   2
  31.  
  32. #define FILE_ERR -1
  33.  
  34. /* FUNCTIONS =========================================================== */
  35.  
  36. extern int f_open(              /* Open a file returning its handle */
  37.      char * filename,
  38.      char access);
  39.  
  40. extern int f_close(             /* Close a file  */
  41.      int handle);
  42.  
  43. extern int f_read(              /* Read a block of data from a file */
  44.      int handle,
  45.      char far * buffer,
  46.      int count);
  47.  
  48. extern int f_write(             /* Write a block of data to a file */
  49.      int handle,
  50.      char far * buffer,
  51.      int count);
  52.  
  53. extern long int f_seek(         /* Position the file pointer */
  54.      int handle,
  55.      long int position,
  56.      char method_code);
  57.  
  58. extern long int f_filelength(   /* Return the length of the file */
  59.      int handle);
  60.  
  61. #endif
  62.  
  63.  
  64.